
package com.ru.application.creditscore.service;

import static org.apache.commons.lang.StringUtils.trimToEmpty;

import javax.inject.Named;

import org.springframework.beans.factory.annotation.Value;

@Named
public class EnvironmentService {
    @Value("${env_name:developement}")
    private String environmentName;

    public boolean isDevelopment() {
        return "developement".equalsIgnoreCase(trimToEmpty(environmentName));
    }

    public String getEnvironmentName() {
        return this.environmentName;
    }
}
